package com.cinorecycle.utils;

import cn.hutool.core.io.IORuntimeException;
import cn.hutool.core.util.RuntimeUtil;
import lombok.extern.slf4j.Slf4j;

@Slf4j
public class LinuxUtils {

    /**
     *
     * 获取当前路径
     * zhaoman
     * 2021-08-06
     *
     * @return
     */
    public static String getPwd(){
        //        获取当前路径
        String pwdPath = null;
        try {
            pwdPath = RuntimeUtil.execForStr("pwd");
        } catch (IORuntimeException e) {
            log.error(e.getMessage());
        }
        return pwdPath;
    }
}
